home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The PC-SIG Library 10
/
The PC-Sig Library - Shareware for the IBM PC and Compatibles (PC-SIG)(Tenth Edition Disks 1-2804)(1991).iso
/
PC_SIGCD
/
07
/
8
/
DISK0786.ZIP
/
AUTOMENU.ARC
/
AUTOMENU.MDF
< prev
next >
Wrap
Text File
|
1986-10-09
|
5KB
|
173 lines
..............................................................
.Automenu Menu Definition File
.By Marshall W. Magee
.Update last on 10/09/86
..............................................................
%Automenu(tm) Application Menu
.................................................
*Word Processing
?Run the PERSONAL EDITOR program (Password = IBM)
^IBM
^BOSS
>This option requires the filename you wish to edit.
>
>Please Select filename to edit: (Press ESC to return to menu)
<
-pe2 /q /p\public\pe2.pro %1
.................................................
*Automenu Menu Building Facility
?This program helps build Menu Definition Files
+AUTOMAKE
+AUTO
.................................................
*Basic
?Run BASIC directly
-basica
.................................................
*Check Disk
?Print information about disk
>Select Drive you wish to do a Check Disk of:
<A:,B:,C:,D:
>
>Now performing a check disk of drive -> %1
=CHKDSK %1
.................................................
*Print Directory to Screen
?List filenames on disk
>Select Drive you wish to see the Directory of:
<A:,C:,D:,A:\PUBLIC
>
>Select directory command option:
>
> /W This option prints filenames across screen
> /P This option will pause when screen fills
> /W/P This option is a combination of the above two options
>
</W,/P,/W/P
>
>Now listing files on drive -> %1 with option -> %2
>
>Total command syntax looks like this ->DIR %1%2
=DIR %1%2
.................................................
*Execute any DOS Command
>Enter any valid DOS Command and Press Return (ESC to return to Menu)
<
>...Now Executing >> %1
=%1
.................................................
*DOS Command Menu
@DOS.MDF
.................................................
*Disk Operating System
?Return to Disk Operating System
>┌─────────────────────┐
>│▓▒░░░░ D O S ░░░░▒▓│
>├─────────────────────┤
>│ Enter » AUTO « │
>│to return to the Menu│
>└─────────────────────┘
>
+ECHO ON
.
.------------------------------
. Define another sub-menu
.------------------------------
.
%******* Executive Diversions *******
*Chess
?Play the game of Chess
!CD \GAMES
!CHESS
!CD \
.................................................
*Backgammon
+CD \GAMES
+BACK
+CD \
+AUTO
.................................................
%More Examples
.................................................
*Printer Menu
?Menu of selections that send print control to PRN:
@PRINTER.MDF
*Multiple password example
?Perform Directory if password = A or IBM or TEST
^A
^IBM
^TEST
>Select Drive you wish to see the Directory of:
<A:,B:,C:,D:,A:\PUBLIC
>
>Now listing files on drive -> %1
>
=DIR %1/P
.................................................
*Multiple input and parameter passing example
>This option demonstates the capability to prompt the user for eight inputs
>and therefore could pass this information in the form of DOS variables.
>
>This example will print the variable information at end.
>
>
>
>Input for DOS parameter 1 (Dynamic)
<
>Input for DOS parameter 2 (Dynamic)
<
>Input for DOS parameter 3 (Static)
<A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z
>Input for DOS parameter 4 (Static)
<A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z
>Input for DOS parameter 5 (Static)
<A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z
>Input for DOS parameter 6 (Static)
<A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z
>Input for DOS parameter 7 (Static)
<A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z
>Input for DOS parameter 8 (Dynamic)
<
>Now Automenu will print the parameters
=ECHO %1 %2 %3%4%5%6%7 %8
.................................................
*Build a menu with a Time Execution of an option
?Build an example of Time Execution
>This option will build a Menu Definition File with the time you wish the option
>to be executed. Enter the filename first and then the time. After which select
>the next option in this menu and enter the same filename to load this new menu.
>This new menu will have an example menu option executed at the time entered.
>
>
>
>
>Enter Filename for Menu Definition File (Press ESC to Quit)
> For Example: TIME.MDF
>
<
>Enter Time in military format
> For Example: Enter 09:00 for 9:00am
> Enter 23:14 for 11:14pm
>
<
>....Now building file %1 with Time Execution example at %2
!ECHO %%Time Execution Example Menu> %1
!ECHO *Directory>> %1
!ECHO ?This menu option will be executed at %2>> %1
!ECHO [%2>> %1
!ECHO -DIR>> %1
!ECHO *Return to main menu>> %1
!ECHO @AUTOMENU.MDF>> %1
!ECHO #END>> %1
.Put a end-of-file character on the end of MDF using copy
!COPY %1+NUL:/A >NUL
.................................................
*Change to another Menu Definition File
?Load another Menu Definition file with new choices
>Enter Filename for Menu Definition File (Press ESC to Quit)
> For Example: TIME.MDF
>
<
@%1
#END OF AUTOMENU.MDF